package com.kaiedu.spring.component;

import com.kaiedu.spring.annotation.Scope;
import com.kaiedu.spring.annotation.kaiAutowired;
import com.kaiedu.spring.annotation.kaiComponent;
import com.kaiedu.spring.processor.initializingBean;
import com.sun.org.apache.xalan.internal.xsltc.dom.SortingIterator;

import java.sql.SQLOutput;

/**
 * @author kai
 * @version 1.0
 * @date 2024/6/11
 * @Description
 */
@Scope(value = "prototype")
@kaiComponent
public class MonsterService implements initializingBean {

    @kaiAutowired
    private MonsterDao monsterDao;

    public void m1() {
        monsterDao.hi();
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("monsterservice进行初始化....");
    }
}
